package com.xbongbong.pro.publicgroup.pojo.dto;

import com.alibaba.fastjson.JSONArray;
import com.xbongbong.paas.domain.entity.ext.OptionalRangeEntity;
import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * @author zhouwq
 * @date 2022/4/14 10:34
 */
@Setter
@Getter
@ToString
public class PublicGroupSeniorSaveDTO extends BaseDTO {

    private static final long serialVersionUID = -6909837238413763432L;
    /**
     * 分组id
     */
    private Long id;

    private Integer businessType;

    private Long parentId;

    private Integer level;
    /**
     * 名称
     */
    @NotNull(message = "{dto.msg.publicGroupSeniorSave.name.NotNull}")
    @Size(min=1, max=50, message="{dto.msg.publicGroupSeniorSave.name.Size}")
    private String name;
    /**
     * 表单id
     */
    @NotNull(message = "{dto.msg.publicGroupSeniorSave.formId.NotNull}")
    private Long formId;

    /**
     * 排序值
     */
    private Integer sort;
    /**
     * 分组查看权限
     */
    private List<OptionalRangeEntity> scopeRule;


    private List<OptionalRangeEntity> adminScopeRule;
    /**
     * 分组筛选条件
     */
    private JSONArray jsonData;
    /**
     * 分组状态
     */
    private Integer status;

    /**
     * 公海分组类型：1：全部分组。2：无分组 0：其他普通分组
     */
    private Integer groupType;


}
